/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package be.vdabantwerpen.gow.servlets;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Collections;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author Tim.VandenLangenberg
 */
public class InfoServlet extends HttpServlet {
    private static final String VIEW = "/WEB-INF/JSP/info.jsp";
    
    /**
     * Handles the HTTP
     * <code>GET</code> method.
     *
     * @param request servlet request
     * @param response servlet response
     * @throws ServletException if a servlet-specific error occurs
     * @throws IOException if an I/O error occurs
     */
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        request.setAttribute("social", Arrays.asList("Test"));
        request.getRequestDispatcher(VIEW).forward(request, response);
    }
    
}
